go.uber.org/zap/zapcore.Field.Integer (field)
30 uses
go.uber.org/zap/zapcore (current package)
field.go#L107: Integer int64
field.go#L127: enc.AddBool(f.Key, f.Integer == 1)
field.go#L135: enc.AddDuration(f.Key, time.Duration(f.Integer))
field.go#L137: enc.AddFloat64(f.Key, math.Float64frombits(uint64(f.Integer)))
field.go#L139: enc.AddFloat32(f.Key, math.Float32frombits(uint32(f.Integer)))
field.go#L141: enc.AddInt64(f.Key, f.Integer)
field.go#L143: enc.AddInt32(f.Key, int32(f.Integer))
field.go#L145: enc.AddInt16(f.Key, int16(f.Integer))
field.go#L147: enc.AddInt8(f.Key, int8(f.Integer))
field.go#L152: enc.AddTime(f.Key, time.Unix(0, f.Integer).In(f.Interface.(*time.Location)))
field.go#L155: enc.AddTime(f.Key, time.Unix(0, f.Integer))
field.go#L160: enc.AddUint64(f.Key, uint64(f.Integer))
field.go#L162: enc.AddUint32(f.Key, uint32(f.Integer))
field.go#L164: enc.AddUint16(f.Key, uint16(f.Integer))
field.go#L166: enc.AddUint8(f.Key, uint8(f.Integer))
field.go#L168: enc.AddUintptr(f.Key, uintptr(f.Integer))
go.uber.org/zap
field.go#L68: return Field{Key: key, Type: zapcore.BoolType, Integer: ival}
field.go#L123: return Field{Key: key, Type: zapcore.Float64Type, Integer: int64(math.Float64bits(val))}
field.go#L139: return Field{Key: key, Type: zapcore.Float32Type, Integer: int64(math.Float32bits(val))}
field.go#L167: return Field{Key: key, Type: zapcore.Int64Type, Integer: val}
field.go#L181: return Field{Key: key, Type: zapcore.Int32Type, Integer: int64(val)}
field.go#L195: return Field{Key: key, Type: zapcore.Int16Type, Integer: int64(val)}
field.go#L209: return Field{Key: key, Type: zapcore.Int8Type, Integer: int64(val)}
field.go#L251: return Field{Key: key, Type: zapcore.Uint64Type, Integer: int64(val)}
field.go#L265: return Field{Key: key, Type: zapcore.Uint32Type, Integer: int64(val)}
field.go#L279: return Field{Key: key, Type: zapcore.Uint16Type, Integer: int64(val)}
field.go#L293: return Field{Key: key, Type: zapcore.Uint8Type, Integer: int64(val)}
field.go#L307: return Field{Key: key, Type: zapcore.UintptrType, Integer: int64(val)}
field.go#L351: return Field{Key: key, Type: zapcore.TimeType, Integer: val.UnixNano(), Interface: val.Location()}
field.go#L384: return Field{Key: key, Type: zapcore.DurationType, Integer: int64(val)}
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |